<template>
  <div>
    <div>son1</div>
    <div>{{ $attrs }}</div>
    <child v-bind="$attrs" v-on="$listeners" />
  </div>
</template>
<script>
import child from '/src/views/attrs/son2'
export default {
  components: {
    child
  },
  inheritAttrs: false,
  props: {
    data1: {
      type: String,
      default: '1'
    }
  },
  created() {
    console.log('son1', this.$attrs, this.$listeners)
  },
  mounted() {
    this.$emit('method1', '这是son1')
  }
}
</script>
